package com.xjh.t.vo;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONObject;
import com.xjh.t.domain.GroupInfo;
import com.xjh.t.domain.RequestInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class GroupAuditInfoVo extends RequestInfo {

    private static final long serialVersionUID = 1L;

    private Integer page=1;
    private Integer limit= 3000;
    //创建者账号
    private String createUserAccount;
    //行政地址
    private String gpPolicyAddr;


    private String gpName;

    private String gpShortname;

    private Long gpLicense;

    private String gpZone;

    private String gpAddr;

    private String socialCode;//统一征信码

    public void parseCompanyInfo()
    {
        JSONObject json = new JSONObject(this.getRtInfo());
        this.setGpName(json.getStr("gp_name"));
        this.setGpShortname(json.getStr("gp_shortname"));
        this.setGpLicense(json.getLong("gp_license"));
        this.setGpAddr(json.getStr("gp_addr"));
        this.setSocialCode(json.getStr("gp_orgcode"));
        this.setGpZone(json.getStr("gp_zone"));

    }


}
